<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet/less" href="./less/reset.less">
    <link rel="stylesheet/less" href="./less/paySuccess.less">
    <script src="https://cdn.bootcdn.net/ajax/libs/less.js/4.1.1/less.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/qs/6.9.6/qs.js"></script>
    <script src="http://res2.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
    <title></title>
</head>
<body>
    <div id="app">
        <div class="main">
            <div class="login-top">
                <header class="title">
                    <div class="spell">支付成功</div>
                </header>
            </div>
            <ul>
                <li>
                    <img src="./img/paySuccess.png"/>
                </li>
                <li>支付成功</li>
                <li>{{payment}}</li>
            </ul>
            <div class="orderDetail" @click="orderDetail">查看订单详情</div>
        </div>
    </div>
</body>
</html>
<script type="module">
    import { shareLink } from './js/public.js';
    Vue.prototype.public = {shareLink};
    let app = new Vue({
        el: '#app',
        data: {
            payment: ''
        },
        mounted(){
            let that = this;
                that.public.shareLink();
                let query = Qs.parse(location.search.substring(1));
                that.payment = query.payment;
        },
        methods:{
            orderDetail(){
                let url = './orderDetails.html?name='+'拼成功'+'&type='+2;
                    window.location.href = url;
            }
        }
    })
</script>